package cn.com.cifi.mars.constant;
/**
 * job状态：0-空闲，1-运行',
 * @author Administrator
 *
 */
public enum RunStatusEnum {

	FREE(0,"空闲"),
	RUN(1,"运行"),
    ;

    private int key;
    private String value;

    RunStatusEnum(int key,String value) {
        this.key = key;
        this.value = value;
    }
    
    
    public static String getValueByKey(int key){
        for(RunStatusEnum versionTypeEunm:RunStatusEnum.values()){
            if(key==versionTypeEunm.getKey()){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }
    
    /**
     * @return the key
     */
    public int getKey() {
        return key;
    }


    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
